import { useEffect, useRef } from "react"

// 页面挂载渲染次数
const useRenderCount = () => {
    const count = useRef(1)
    useEffect(() => count.current++)
    return count.current
}

export default useRenderCount